package com.babble.manage.service.impl;

import com.babble.manage.entity.OssFile;
import com.babble.manage.service.ResourceService;
import org.springblade.common.entity.MinioPolicy;
import org.springblade.core.tool.api.R;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 远程资源类降级
 *
 * @author wm
 */
@Service
public class ResourceServiceImpl implements ResourceService {
	@Override
	public R<OssFile> upload(MultipartFile file) {
		return R.fail("上传失败");
	}

	@Override
	public R<MinioPolicy> getPolicy(String fileName, String contentType) {
		return R.fail("获取失败");
	}

	@Override
	public R delete(String filePath) {
		return R.fail("删除失败");
	}

	@Override
	public R deletes(List<String> filePaths) {
		return R.fail("删除失败");
	}
}
